﻿using Microsoft.Extensions.DependencyInjection;
using StudentInfoSystem.Core.Interfaces;
using StudentInfoSystem.UI.ViewModels;
using System.Windows.Controls;

namespace StudentInfoSystem.UI.Views.Pages;

public partial class StatisticsView : UserControl
{
    public StatisticsView()
    {
        InitializeComponent();
        var statisticsService = Bootstrapper.AppHost.Services
               .GetRequiredService<IStatisticsService>();
        DataContext = new StatisticsViewModel(statisticsService);

    }

    private void CartesianChart_Loaded(object sender, System.Windows.RoutedEventArgs e)
    {

    }
}